import Vue from "vue";
import VueRouter from "vue-router";

Vue.use(VueRouter);

const routes = [
  {
    path: '/',
    redirect:'/home'
  },
  {
    path: '/home',
    name: 'home',
    component: () => import('../views/home.vue'),
    children: [
      {
        path: '/one',
        name: 'one',
        component:()=>import('../views/One.vue')
      },
      {
        path: '/two',
        name: 'two',
        component:()=>import('../views/Two.vue')
      },
      {
        path: '/three',
        name: 'three',
        component:()=>import('../views/Three.vue')
      }
    ]
  }
  
  
];

const router = new VueRouter({
  routes,
});

export default router;
